package com.zoe.blog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.zoe.blog.dao")
@EnableTransactionManagement
@EnableScheduling
public class BlogAdminApplication {
        public static void main(String[] args) { SpringApplication.run(BlogAdminApplication.class, args); }

        protected SpringApplicationBuilder configure(SpringApplicationBuilder application){
            return application.sources(BlogAdminApplication.class);
        }
}
